//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.
// 		VisualNovelToolkit		/_/_/_/_/_/_/_/_/_/.
// Copyright ©2013 - Sol-tribe.	/_/_/_/_/_/_/_/_/_/.
//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.
using UnityEngine;
using System.Collections;

namespace ViNoToolkit{
	
	/// <summary>
	/// Config event.
	/// </summary>
	public class ConfigEvent : MonoBehaviour {

		/// <summary>
		/// Raises the BGM slider change event.
		/// </summary>
		/// <param name="val">Value.</param>					
		void OnBGMSliderChange( float val ){
			ViNoConfig.prefsBgmVolume = val;
		}
		
		/// <summary>
		/// Raises the SE slider change event.
		/// </summary>
		/// <param name="val">Value.</param>
		void OnSESliderChange( float val ){
			ViNoConfig.prefsSeVolume = val;
		}

		/// <summary>
		/// Raises the voice slider change event.
		/// </summary>
		/// <param name="val">Value.</param>
		void OnVoiceSliderChange( float val ){
			ViNoConfig.prefsVoiceVolume = val;
		}
		
		/// <summary>
		/// Raises the text speed slider change event.
		/// </summary>
		/// <param name="val">Value.</param>
		void OnTextSpeedSliderChange( float val ){
			ViNoConfig.prefsTextSpeed = val;
		}
		
		/// <summary>
		/// Raises the auto speed slider change event.
		/// </summary>
		/// <param name="val">Value.</param>
		void OnAutoSpeedSliderChange( float val ){		
			ViNo.autoModeWaitTime = val;
		}
		
	}

}